I’m looking at this page: https://docs.pantheon.io/cache-control
And I’m trying to understand what the #
characters are in regex path patterns in the code example. Doesn’t #
just match a literal #
character in a regex? When would that ever be part of the path reported by $_SERVER['REQUEST_URI']
?
If I’m trying to match a path that starts with /news/
, isn’t the correct regex ^/news/?
and not #^/news/?#
?